<template>
	<view>
		<web-view :src="wp[0].couponLink"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				wp: []
			}
		},
		methods: {

		},
		onLoad(option) {
			let that = this
			console.log(option);
			uni.request({
				url: "https://openapi.dataoke.com/api/goods/get-goods-list?version=v1.2.4&appKey=612bcfe884763&pageId=1&pageSize=100&sort=0&sign=195f438dc203278dde0ca425d6af807f",
				success(res) {
					that.wp = res.data.data.list
					that.wp = that.wp.filter((item) => {
						return item.id == option.id;
					})
					console.log(that.wp)
				},
			})
		}
	}
</script>

<style>

</style>
